package com.common.retrofit.entity.bean;

import java.util.List;

/**
 * Created by Administrator on 2017/11/7.
 */

public class HomeBean {

    /**
     * address :
     * category : [{"id":1,"name":"蔬菜","icon":"http://chujiale.oss-cn-beijing.aliyuncs.com/Admin/Picture/2017-10-26/3212.jpg"},{"id":2,"name":"水果","icon":"http://chujiale.oss-cn-beijing.aliyuncs.com/Admin/Picture/2017-10-26/11.jpg"},{"id":7,"name":"日用品","icon":"http://chujiale.oss-cn-beijing.aliyuncs.com/Admin/Picture/2017-10-26/12121.jpg"},{"id":9,"name":"分类1","icon":"http://chujiale.oss-cn-beijing.aliyuncs.com/Admin/Picture/2017-10-26/11.jpg"},{"id":12,"name":"分类2","icon":"http://chujiale.oss-cn-beijing.aliyuncs.com/Admin/Picture/2017-10-26/42.jpg"}]
     * active : [{"id":3,"title":"分享有礼","name":"有钱大家一起赚","img":"http://chujiale.oss-cn-beijing.aliyuncs.com/Admin/Picture/2017-10-26/weg.jpg","url":"http://baidu.com"},{"id":2,"title":"特价商品","name":"低至88折","img":"http://chujiale.oss-cn-beijing.aliyuncs.com/Admin/Picture/2017-10-26/23231.jpg","url":"http://baidu.com"},{"id":1,"title":"天天特价","name":"每ID限购一件","img":"http://chujiale.oss-cn-beijing.aliyuncs.com/Admin/Picture/2017-10-26/timg.jpg","url":"http://baidu.com"}]
     * goods : {"list":[{"id":10,"name":"水蜜桃","img":"http://chujiale.oss-cn-beijing.aliyuncs.com/Admin/Picture/2017-10-27/cf36fc8307f788575edf9b02bea211a1.jpg","s_name":"水蜜桃","s_prince":150,"is_num":1,"specifications":{"id":13,"name":"水蜜桃","prince":150,"num":1245,"is_num":1}},{"id":8,"name":"丹东泡菜","img":"http://chujiale.oss-cn-beijing.aliyuncs.com/Admin/Picture/2017-10-27/6cd20fecee712c7968b4455c9430bcb2.jpg","s_name":"泡菜","s_prince":45,"is_num":1,"specifications":{"id":11,"name":"泡菜","prince":45,"num":15424,"is_num":1}},{"id":7,"name":"榨菜","img":"http://chujiale.oss-cn-beijing.aliyuncs.com/Admin/Picture/2017-10-27/7fad4e35fc0d931a11b79bed678ebd68.jpg","s_name":"涪陵榨菜","s_prince":108,"is_num":1,"specifications":{"id":9,"name":"涪陵榨菜","prince":108,"num":256321,"is_num":1}},{"id":5,"name":"猕猴桃","img":"http://chujiale.oss-cn-beijing.aliyuncs.com/Admin/Picture/2017-10-27/195485b8a1d39016c0f84545bdd3b035.jpg","s_name":"普通猕猴桃","s_prince":799,"is_num":1,"specifications":{"id":5,"name":"普通猕猴桃","prince":799,"num":8784,"is_num":1}},{"id":4,"name":"核桃","img":"http://chujiale.oss-cn-beijing.aliyuncs.com/Admin/Picture/2017-10-27/b2afcc124b98c784da9ae1f65e99d105.jpg","s_name":"山核桃","s_prince":150,"is_num":1,"specifications":{"id":4,"name":"山核桃","prince":150,"num":1525,"is_num":1}},{"id":3,"name":"橙子","img":"http://chujiale.oss-cn-beijing.aliyuncs.com/Admin/Picture/2017-10-27/1312872530fd361d27cb8f690ea26367.jpg","s_name":"橙子","s_prince":21.5,"is_num":1,"specifications":{"id":2,"name":"橙子","prince":21.5,"num":2145,"is_num":1}},{"id":2,"name":"生菜","img":"http://chujiale.oss-cn-beijing.aliyuncs.com/Admin/Picture/2017-10-26/23231.jpg","s_name":"3斤/袋","s_prince":25,"is_num":1,"specifications":{"id":1,"name":"3斤/袋","prince":25,"num":100,"is_num":1}}],"total":8,"remainder":0,"page":1}
     * slideshow : [{"id":1,"url":"http://baidu.com","pic":"http://chujiale.oss-cn-beijing.aliyuncs.com/Admin/Picture/2017-10-26/3212.jpg","name":"广告1"},{"id":2,"url":"http://baidu.com","pic":"http://chujiale.oss-cn-beijing.aliyuncs.com/Admin/Picture/2017-10-26/42.jpg","name":"广告2"},{"id":3,"url":"http://baidu.com","pic":"http://chujiale.oss-cn-beijing.aliyuncs.com/Admin/Picture/2017-10-26/23231.jpg","name":"广告3"}]
     * center : [{"id":4,"url":"http://baidu.com","pic":"http://chujiale.oss-cn-beijing.aliyuncs.com/Admin/Picture/2017-10-26/weg.jpg","name":"首页中部广告"}]
     */

    public String address;
    public GoodsBean goods;
    public List<CategoryBean> category;
    public List<ActiveBean> active;
    public List<SlideshowBean> slideshow;
    public List<CenterBean> center;

    public static class GoodsBean {
        /**
         * list : [{"id":10,"name":"水蜜桃","img":"http://chujiale.oss-cn-beijing.aliyuncs.com/Admin/Picture/2017-10-27/cf36fc8307f788575edf9b02bea211a1.jpg","s_name":"水蜜桃","s_prince":150,"is_num":1,"specifications":{"id":13,"name":"水蜜桃","prince":150,"num":1245,"is_num":1}},{"id":8,"name":"丹东泡菜","img":"http://chujiale.oss-cn-beijing.aliyuncs.com/Admin/Picture/2017-10-27/6cd20fecee712c7968b4455c9430bcb2.jpg","s_name":"泡菜","s_prince":45,"is_num":1,"specifications":{"id":11,"name":"泡菜","prince":45,"num":15424,"is_num":1}},{"id":7,"name":"榨菜","img":"http://chujiale.oss-cn-beijing.aliyuncs.com/Admin/Picture/2017-10-27/7fad4e35fc0d931a11b79bed678ebd68.jpg","s_name":"涪陵榨菜","s_prince":108,"is_num":1,"specifications":{"id":9,"name":"涪陵榨菜","prince":108,"num":256321,"is_num":1}},{"id":5,"name":"猕猴桃","img":"http://chujiale.oss-cn-beijing.aliyuncs.com/Admin/Picture/2017-10-27/195485b8a1d39016c0f84545bdd3b035.jpg","s_name":"普通猕猴桃","s_prince":799,"is_num":1,"specifications":{"id":5,"name":"普通猕猴桃","prince":799,"num":8784,"is_num":1}},{"id":4,"name":"核桃","img":"http://chujiale.oss-cn-beijing.aliyuncs.com/Admin/Picture/2017-10-27/b2afcc124b98c784da9ae1f65e99d105.jpg","s_name":"山核桃","s_prince":150,"is_num":1,"specifications":{"id":4,"name":"山核桃","prince":150,"num":1525,"is_num":1}},{"id":3,"name":"橙子","img":"http://chujiale.oss-cn-beijing.aliyuncs.com/Admin/Picture/2017-10-27/1312872530fd361d27cb8f690ea26367.jpg","s_name":"橙子","s_prince":21.5,"is_num":1,"specifications":{"id":2,"name":"橙子","prince":21.5,"num":2145,"is_num":1}},{"id":2,"name":"生菜","img":"http://chujiale.oss-cn-beijing.aliyuncs.com/Admin/Picture/2017-10-26/23231.jpg","s_name":"3斤/袋","s_prince":25,"is_num":1,"specifications":{"id":1,"name":"3斤/袋","prince":25,"num":100,"is_num":1}}]
         * total : 8
         * remainder : 0
         * page : 1
         */

        public int total;
        public int remainder;
        public int page;
        public List<ListBean> list;

        public static class ListBean {
            /**
             * id : 10
             * name : 水蜜桃
             * img : http://chujiale.oss-cn-beijing.aliyuncs.com/Admin/Picture/2017-10-27/cf36fc8307f788575edf9b02bea211a1.jpg
             * s_name : 水蜜桃
             * s_prince : 150
             * is_num : 1
             * specifications : {"id":13,"name":"水蜜桃","prince":150,"num":1245,"is_num":1}
             */

            public int id;
            public String name;
            public String img;
            public String s_name;
            public double s_prince;
            public int is_num;
            public SpecificationsBean specifications;

            public static class SpecificationsBean {
                /**
                 * id : 13
                 * name : 水蜜桃
                 * prince : 150
                 * num : 1245
                 * is_num : 1
                 */

                public int id;
                public String name;
                public double prince;
                public int num;
                public int is_num;
            }
        }
    }

    public static class CategoryBean {
        /**
         * id : 1
         * name : 蔬菜
         * icon : http://chujiale.oss-cn-beijing.aliyuncs.com/Admin/Picture/2017-10-26/3212.jpg
         */

        public int id;
        public String name;
        public String icon;
    }

    public static class ActiveBean {
        /**
         * id : 3
         * title : 分享有礼
         * name : 有钱大家一起赚
         * img : http://chujiale.oss-cn-beijing.aliyuncs.com/Admin/Picture/2017-10-26/weg.jpg
         * url : http://baidu.com
         */

        public int id;
        public String title;
        public String name;
        public String img;
        public String url;
    }

    public static class SlideshowBean {
        /**
         * id : 1
         * url : http://baidu.com
         * pic : http://chujiale.oss-cn-beijing.aliyuncs.com/Admin/Picture/2017-10-26/3212.jpg
         * name : 广告1
         */

        public int id;
        public String url;
        public String pic;
        public String name;
    }

    public static class CenterBean {
        /**
         * id : 4
         * url : http://baidu.com
         * pic : http://chujiale.oss-cn-beijing.aliyuncs.com/Admin/Picture/2017-10-26/weg.jpg
         * name : 首页中部广告
         */

        public int id;
        public String url;
        public String pic;
        public String name;
    }
}
